package com.scsj.cloud.producer.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.scsj.cloud.producer.data.model.WorkOrder;
import com.scsj.cloud.producer.service.WorkOrderService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping("/scsj/cloud/workorder")
@Api(value = "工单号相关")
public class WorkOrderController {
	
	@Autowired
	private WorkOrderService workOrderServiceImpl;
	
	@PostMapping(value = "/createWorkOrder")
	@ApiOperation(value = "创建工单号", notes = "参数：工单号信息")
	public void getDistributedId(@RequestBody WorkOrder workOrder) {
		
		this.workOrderServiceImpl.sendMsg(workOrder);
	}	

	
}
